package Demo01_15;

import java.util.ArrayList;

/**
 * Created by 14229 on 2020/1/16.
 */
public class Test10 {
    public static void main(String[] args) {

        String[] strs = {"12","345","6789","1","123","4567"};
        ArrayList<String> listo = new ArrayList<>();
        ArrayList<String> listj = new ArrayList<>();
        for (String str : strs) {
            if (str.length()%2==0){
                listo.add(str);
            }else {
                listj.add(str);
            }
        }
        System.out.println("偶数长度字符串："+listo);
        System.out.println("奇数长度字符串："+listj);
    }
}
